﻿<!--
//*****************************************************************************
//
//  Silver Games - Checkers
//  Copyright © 2009 Randi Relander
//      <rjrelander@users.sourceforge.net>
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
//*****************************************************************************
-->

<UserControl x:Class="Checkers.Client.Checker"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:c="clr-namespace:Checkers.Client">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="CheckersResources.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">

        <Canvas>

            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.45" ScaleY="0.45" />
                    <TranslateTransform x:Name="mTranslate" />
                </TransformGroup>
            </Canvas.RenderTransform>

            <c:CheckerRed x:Name="mRedBase" />
            <c:CheckerRed Canvas.Top="-18" x:Name="mRedCrown" />

            <c:CheckerBlack x:Name="mBlackBase" />
            <c:CheckerBlack Canvas.Top="-18" x:Name="mBlackCrown" />

        </Canvas>

        <Grid.Resources>

            <Storyboard x:Name="mMoveAnimation">

                <DoubleAnimation x:Name="mMoveX"
                    Storyboard.TargetName="mTranslate"
                    Storyboard.TargetProperty="X" />

                <DoubleAnimation x:Name="mMoveY"
                    Storyboard.TargetName="mTranslate"
                    Storyboard.TargetProperty="Y" />

            </Storyboard>

        </Grid.Resources>

    </Grid>

</UserControl>
